{{ if eq .type "dir" }}
<details>
    <summary>{{ .name }}</summary>
    <ul>
        {{ range .items }}
        {{ partial "render-tree" . }}
        {{ end }}
    </ul>
</details>
{{ else if eq .type "file" }}
<div>
    {{- $url := strings.TrimSuffix  ".md" .path -}}
    {{- $url := lower $url  | replaceRE " " "-"  -}}
    {{- $url := replace $url "(" "" -}}
    {{- $url := replace $url ")" "" -}}
    <a href="/{{ $url }}/">{{ .name  }}</a>
</div>
{{ end }}